package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

/**
 * @author 冰白寒祭
 * @date 2023-09-09 12:39:39
 * @description 数据统计
 */
public interface ReportService {

    /**
     * @MethodName: getTurnoverStatistics
     * @Author 冰白寒祭
     * @Description: 统计指定时间区间内的营业额数据
     * @Date: 2023-09-09 12:41:54
     * @param: LocalDate begin
     * @param: LocalDate end
     * @return: TurnoverReportVO
     */
    TurnoverReportVO getTurnoverStatistics(LocalDate begin, LocalDate end);

    /**
     * @MethodName: getUserStatistics
     * @Author 冰白寒祭
     * @Description: 指定区间用户统计
     * @Date: 2023-09-09 15:54:12
     */

    UserReportVO getUserStatistics(LocalDate begin, LocalDate end);

    /**
     * @MethodName: getOrderStatistics
     * @Author 冰白寒祭
     * @Description: 统计指定时间区间内的订单数据
     * @Date: 2023-09-09 16:21:54
     */

    OrderReportVO getOrderStatistics(LocalDate begin, LocalDate end);

    /**
     * @MethodName: getSalesTop10
     * @Author 冰白寒祭
     * @Description: 销量排名top10
     * @Date: 2023-09-09 16:54:28
    */

    SalesTop10ReportVO getSalesTop10(LocalDate begin, LocalDate end);

    /**
     * @MethodName: exportBusinessData
     * @Author 冰白寒祭
     * @Description: 导出运营数据报表
     * @Date: 2023-09-09 21:0:09
     */
    
    void exportBusinessData(HttpServletResponse response);
}
